﻿using System;
using System.Collections.Generic;
using System.Text;
using Watchdog.Dal;
using Watchdog.Bll;
using Watchdog.Bll.Base;

namespace Watchdog.Bll.Factory {

    public partial class TestUnitFactory {
        public static void Delete ( TestUnitBase testunit ) {
            DataClient.Current.TestUnitDelete (testunit.IntData);
        }

        public static TestUnit GetById ( int id ) {
            return new TestUnit (DataClient.Current.TestUnitGetById (id));
        }

        public static void Insert ( TestUnitBase testunit ) {
            testunit.IntData = DataClient.Current.TestUnitInsert (testunit.IntData);
        }

        public static void Update ( TestUnitBase testunit ) {
            DataClient.Current.TestUnitUpdate (testunit.IntData);
        }


    }
}
